﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Encuesta.aspx.cs" Inherits="KioskosJugandoLimpio.Encuestas.Encuesta" ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script language="javascript" type="text/javascript" >
    fnSerialize = function () {
        var serialized = new Array();
        var form = document.getElementsByTagName("FORM")[0];
        var controls = new Array();
        var inputs = form.getElementsByTagName("input");
        for (var i = 0; i < inputs.length; i++) {
            input = inputs[i];
            if (input.id != "txtForm" && input.type != "submit" && input.id.substring(0, 2) != "__") {
                if (((input.type == "checkbox" || input.type == "radio") && input.checked) || input.type == "text") {
                    serialized.push(input.id + "^" + (input.type == "text"?"~":"") + input.value);
                }
            }
        }
        document.getElementById("txtForm").value = serialized.join("|");
        return true;
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:TextBox ID="txtCURP" runat="server" ClientIDMode="Static" ></asp:TextBox>
<div id="DivEncuesta" runat="server"></div>
<asp:HiddenField ID="txtForm" runat="server" ClientIDMode="Static"/>
</asp:Content>
